package com.koron.operation.classes.form.bean.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.koron.bean.annocation.FillField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author jzp
 * @since 2023/5/25
 */
@Data
@ApiModel(value = "打卡面板", description = "ClassesFormClockIn")
public class ClassesFormClockIn {

    /**
     * 职级ID
     */
    @ApiModelProperty("职级ID")
    private String rankId;

    /**
     * 职级名称
     */
    @ApiModelProperty("职级名称")
    private String rankName;

    /**
     * 职级拼音
     */
    @ApiModelProperty("职级拼音")
    private String rankPinyin;

    /**
     * 用户id
     */
    @ApiModelProperty("用户id")
    private String userId;

    /**
     * 用户名称
     */
    @ApiModelProperty("用户名称")
    private String userName;

    /**
     * 用户拼音
     */
    @ApiModelProperty("用户拼音")
    private String userPinyin;

    /**
     * 值班单位id
     */
    @FillField(alias = "orgId")
    @ApiModelProperty("值班单位id")
    private String deptId;

    /**
     * 值班单位名称
     */
    @FillField(alias = "orgName")
    @ApiModelProperty("值班单位名称")
    private String deptName;

    @ApiModelProperty("值班日期, yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date shiftDate;

    @ApiModelProperty("上班面板")
    private ClassesFormRecordDTO beforeClockIn;

    @ApiModelProperty("下班面板")
    private ClassesFormRecordDTO afterClockIn;

}
